package com.huanxing.cloud.upms.common.feign;

import com.huanxing.cloud.common.core.constant.SecurityConstants;
import com.huanxing.cloud.common.core.constant.ServiceNameConstants;
import com.huanxing.cloud.common.core.entity.Result;
import com.huanxing.cloud.upms.common.entity.SysLoginLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "feignSysLoginLogService", value = ServiceNameConstants.UMPS_ADMIN_SERVICE)
public interface FeignSysLoginLogService {

  @PostMapping("/sysloginlog/inner/save")
  Result save(SysLoginLog sysLoginLog, @RequestHeader(SecurityConstants.SOURCE) String source);
}
